﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace appLibrary
{
  public   class ClassReport
    {



        public DataSet loadInpection(string strUser, string spName, string strCodInspection, int intProgress)
        {
            try{
                ViewQueries viewQueries = new ViewQueries();
                DataSet dts = new DataSet();
                viewQueries.getSPQueries2(spName, ref dts, "dtInpection", null, strCodInspection, intProgress);
                return dts;

            }catch(Exception e){

                Log.eLog(strUser,"(ERROR): Se generó errores la intentrar recuperar las observacion:"+e.ToString());

                return null;
            }

        }

        public DataSet loadInpector(string strUser, string spName, string strCodInspection)
        {
            try
            {
                ViewQueries viewQueries = new ViewQueries();
                DataSet dts = new DataSet();
                viewQueries.getSPQueries2(spName, ref dts, "dtInpector", null, strCodInspection);
                return dts;

            }
            catch (Exception e)
            {

                Log.eLog(strUser, "(ERROR): Se generó errores la intentrar recuperar las observacion:" + e.ToString());

                return null;
            }

        }


     



    }
}
